#pragma once

#include <QWidget>
#include "ui_Pacs_ShowPicWidget.h"
#include "Pacs_ShowPicView.h"
class QLabel;

class Pacs_ShowPicWidget : public QWidget
{
	Q_OBJECT

public:
	Pacs_ShowPicWidget(QWidget *parent = Q_NULLPTR);
	~Pacs_ShowPicWidget();
public:
	void setLabelName(const QString strName);
	void addLabelName(const QString strName);
	void setBackgroundImg(const QImage&);
	const QString getLabelName();
	void setPicIndex(int nIndex);
	void hideSelLabel();
	int getPicIndex();
	void SetImageFilePath(const QString& strFilePath);
	QString imageFilePath() const;
protected:
	void enterEvent(QEvent *);
	void leaveEvent(QEvent *);
	void mousePressEvent(QMouseEvent *event);
	//void mouseDoubleClickEvent();
public slots:
	//void on_pic_btn_clicked();
	
signals:
	void isSelect(bool,int);
private:
	Ui::Pacs_ShowPicWidget ui;
	QLabel *newLabel;
	int m_nIndex;
	Pacs_ShowPicView *m_showPicView;
	QString  m_strImagePath;

	

};
